package com.group.activity.dao;

import com.group.activity.entity.ShopOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 订单表
 * 
 * @author gxx
 * @email hongyezhaofang.com
 * @date 2021-11-13 10:36:51
 */
@Mapper
public interface ShopOrderDao extends BaseMapper<ShopOrderEntity> {

    @Select("SELECT order_date,order_id,order_sn,order_pay from shop_order ORDER BY order_date desc")
    List<ShopOrderEntity> desc();
}